package com.punai.customer.domain;

import com.punai.common.annotation.Excel;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 特征关联对象 cus_link_feature
 *
 * @author zxw
 * @date 2022-12-04
 */
public class CusLinkFeature {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 关联费用项id
     */
    @Excel(name = "关联费用项id")
    private String itemId;

    /**
     * 特征id
     */
    @Excel(name = "特征id")
    private String featureId;

    /**
     * 选择的值
     */
    @Excel(name = "选择的值")
    private String featureItem;

    // 是否前缀
    private String isPrefix;

    // 是否主项
    private String isSubject;

    // 前缀顺序
    private Integer sequence;

    // 默认顺序
    private Integer orderNum;
    /**
     * GX工序/CL材料/JX机械/FB分包
     */
    @Excel(name = "GX工序/CL材料/JX机械/FB分包")
    private String type;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setFeatureId(String featureId) {
        this.featureId = featureId;
    }

    public String getFeatureId() {
        return featureId;
    }

    public void setFeatureItem(String featureItem) {
        this.featureItem = featureItem;
    }

    public String getFeatureItem() {
        return featureItem;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public String getIsPrefix() {
        return isPrefix;
    }

    public void setIsPrefix(String isPrefix) {
        this.isPrefix = isPrefix;
    }

    public String getIsSubject() {
        return isSubject;
    }

    public void setIsSubject(String isSubject) {
        this.isSubject = isSubject;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("itemId", getItemId())
                .append("featureId", getFeatureId())
                .append("featureItem", getFeatureItem())
                .append("type", getType())
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;

        if (o == null || getClass() != o.getClass()) return false;

        CusLinkFeature that = (CusLinkFeature) o;

        return new EqualsBuilder().append(id, that.id).append(companyId, that.companyId).append(itemId, that.itemId).append(featureId, that.featureId).append(featureItem, that.featureItem).append(type, that.type).isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37).append(id).append(companyId).append(itemId).append(featureId).append(featureItem).append(type).toHashCode();
    }
}
